package team.yidong.fenda.service;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;
import team.yidong.fenda.entity.Question;

import java.util.List;

/**
 * Created by xuanlong on 2017/10/27.
 */
@Service
public interface QuestionService {

    JSONObject findQuestion(Integer hospitalId, String hospitalName, String userName, String isSolved, String haveImg, String questionClass, String askDate, String questionMoney, String maxDate, String questionContent, String answerStatus, Integer page, Integer page_size);


    List<Question> findLatestQuestionByHospital(Integer hospitalId);

    JSONObject questionInfo(Integer questionId);

    List<String> findQuestionClassByHospital(Integer hospitalId);

    void deleteQuestion(Integer questionId);
}
